<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form action="procurar-alunos">
		<input type="hidden" name="numSala" value="${sala.id}"/>
		Nome do Aluno <br />	
		<input type="text" name="nome">	
		<input type="submit" value="Procurar Aluno"/>	
	</form>
	<br /> <br /> 	
	<table width="100%" border="1">
		<tr>
			<c:forEach items="${alunos}" var="aluno">
				<td>${aluno.id}</td>
				<td>${aluno.nome}</td>
				<td><a href="adiciona-aluno-na-sala?idSala=${sala.id}&idAluno=${aluno.id}">Adicionar</a></td>
			</c:forEach>
		<tr>			
	</table>
	
</body>
</html>